\documentclass{article}
\begin{document}
$$
\mbox{This is a very looooooooooooooooooooooooooooooooooooooooooooooong line, likely to produce an overflow}
$$
\end{document}
